<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
</head>
<body>
<form action="/goods" method="post">
    关键字:<input type="text" name="key" th:placeholder="请输入商品信息"/><input type="submit" value="查询">
</form>
<table>
    <tr>
        <td>商品编号</td>
        <td>商品名称</td>
        <td>商品图片</td>
        <td>商品价格</td>
        <td>专卖店</td>
        <td>热点词</td>
    </tr>
    <tr th:each="g:${goods}">
        <td th:text="${g.id}"/>
        <td th:utext="${g.title}"/>
        <td>
            <img th:src="${g.img}" alt="" style="width: 135px; height: 135px"/>
        </td>
        <td th:text="${g.price}"/>
        <td th:text="${g.store}"/>
        <td th:text="${g.hotWord}"/>
    </tr>
</table>
</body>
</html>
